Gandhi participated in the South African war against the Boers, on the British side in 1899.[239] Both the Dutch settlers called Boers and the imperial British at that time discriminated against the coloured races they considered as inferior, and Gandhi later wrote about his conflicted beliefs during the Boer war.